Structures
Pascal
C/C++
w
var
w
student: record
w
id: integer;
w
name: packed array[1..10]
of char;
w
gpa: real
w
end;
w
struct
w
{ int id;
w
char name[11];
w
float gpa;
w
} student;
New ANSI Standard C++
#include <string.h>
char name[11];
ó
string name;
The standard header <string> must be #included to allow this.